package com.wf.classRoomTest.run;

public class ReEntryLockDemo
{
    public  void m1()
    {
        System.out.println(Thread.currentThread().getName()+"-----m1");
        m2();
    }
    public  void m2()
    {
        System.out.println(Thread.currentThread().getName()+"-----m2");
        m3();
    }
    public  void m3()
    {
        System.out.println(Thread.currentThread().getName()+"-----m3");
    }

    public static void main(String[] args)
    {
        ReEntryLockDemo reEntryLockDemo = new ReEntryLockDemo();

        for (int i = 0; i < 100; i++) {

            new Thread(reEntryLockDemo::m1,"Thread"+i).start();
        }

    }
}